import {PageContainer, ProColumns, ProTable} from "@ant-design/pro-components";
import React from "react";
import {fetchUserPage} from "@/services/admin/user";
import {fetchPermPage} from "@/services/admin/perm";


const SystemRole: React.FC = () => {

  const columns: ProColumns<ADMIN_API.RoleVO>[] = [
    {
      title: 'id',
      dataIndex: 'id',
      hideInTable: true,
      hideInSearch: true
    },
    {
      title: '权限名',
      dataIndex: 'perm'
    },
    {
      title: '权限关键字',
      dataIndex: 'perm_key '
    },
    {
      title: '创建时间',
      dataIndex: 'create_time'
    }
  ]

  return <>
    <PageContainer title="权限管理">
      <ProTable columns={columns} request={fetchPermPage}></ProTable>
    </PageContainer>
  </>
}


export default SystemRole
